package cn.zqw.utils;

import org.junit.Test;

import java.util.UUID;

/**
 * 用于随机生成id
 */

public class IDutil {

    public static String getId(){
        return UUID.randomUUID().toString().replaceAll("-","");
    }

    @Test
    public void test(){
        System.out.println(IDutil.getId());
        System.out.println(IDutil.getId());
        System.out.println(IDutil.getId());
    }
}
